﻿using CKS2320.Common.Model;
using CKS2320.Domain.DBEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CKS2320.Repository.Interface
{
    public interface IThicknessDetectionRepository
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="tdEntity"></param>
        /// <param name="detailList"></param>
        /// <returns></returns>
        ResultReturn Add(Thicknessdetection tdEntity, List<Detectiondetail> detailList, Op30coredata op30CoreData);
        ResultReturn AddPerformanceRecord(PerformanceRecord record);
        /// <summary>
        /// 根据partcode获取列表信息
        /// </summary>
        /// <param name="partCode"></param>
        /// <returns></returns>
        IEnumerable<Thicknessdetection> GetByPartCode(string partCode);
        /// <summary>
        /// 基恩士激光扫描仪数据添加
        /// </summary>
        /// <param name="detailList"></param>
        /// <returns></returns>
        ResultReturn KeyenceAdd(List<Detectiondetail> detailList);
        /// <summary>
        /// 根据partcode获取列表信息
        /// </summary>
        /// <param name="partCode"></param>
        /// <returns></returns>
        Thicknessdetection GetByID(Guid? parentid);
        /// <summary>
        /// 导出
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        List<Detectiondetail> Export3DKeyenceList(TotalReq req);
    }
}
